x86/vmx: introduce helper to set VMX_INTR_SHADOW_NMI
authorRoger Pau Monné <roger.pau@citrix.com>
Tue, 21 Mar 2023 12:41:49 +0000 (13:41 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 21 Mar 2023 12:41:49 +0000 (13:41 +0100)
commit27abea1ba6fa68f81b98de31cf9b9ebb594ff238
tree3d3f48eda8ff37b327c8489f4c1e75dd8a744f4c
parent83f12e4eafdc4b034501adf4847a09a1293fdf8b
x86/vmx: introduce helper to set VMX_INTR_SHADOW_NMI

Introduce a small helper to OR VMX_INTR_SHADOW_NMI in
GUEST_INTERRUPTIBILITY_INFO in order to help dealing with the NMI
unblocked by IRET case.  Replace the existing usage in handling
EXIT_REASON_EXCEPTION_NMI and also add such handling to EPT violations
and page-modification log-full events.

Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
master commit: d329b37d12132164c3894d0b6284be72576ef950
master date: 2022-12-19 11:23:34 +0100
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/include/asm/hvm/vmx/vmx.h